package top.jiangqiang.qianyi.business.service;

import top.jiangqiang.qianyi.business.model.request.UserInfoListRequest;
import top.jiangqiang.qianyi.business.model.request.UserInfoPageRequest;
import top.jiangqiang.qianyi.business.model.request.UserInfoSaveRequest;
import top.jiangqiang.qianyi.business.model.request.UserInfoUpdateRequest;
import top.jiangqiang.qianyi.business.model.response.UserInfoDetailResponse;
import top.jiangqiang.qianyi.business.model.response.UserInfoListResponse;
import top.jiangqiang.qianyi.business.model.response.UserInfoPageResponse;
import top.jiangqiang.qianyi.common.base.model.response.PageResult;
import top.jiangqiang.qianyi.common.base.model.response.Result;
import top.jiangqiang.qianyi.common.base.service.BaseService;
import top.jiangqiang.qianyi.data.model.entity.UserInfo;
import top.jiangqiang.qianyi.data.service.UserInfoDbService;

import java.util.List;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author JiangQiang
 * @since 2024-06-03
 */
public interface UserInfoService extends BaseService<UserInfoDbService, UserInfo> {

    Result<PageResult<UserInfoPageResponse>> page(UserInfoPageRequest request);

    Result<List<UserInfoListResponse>> list(UserInfoListRequest request);

    Result<Void> add(UserInfoSaveRequest request);

    Result<Void> update(UserInfoUpdateRequest request);

    Result<UserInfoDetailResponse> detail(Long id);

    Result<Void> delete(Long id);

}
